import math
class Solution(object):
    def minElements(self, nums, limit, goal):
        diff = goal - sum(nums)
        return math.ceil(abs(diff) / limit)